<template>
  <view class="container">
    <view class="input-item">
      <text class="input-label">请输入手机号</text>
      <input class="input-field" v-model="phoneNumber" placeholder="请输入手机号" />
      <button class="code-button" @click="getVerificationCode">获取验证码</button>
    </view>
    <view class="input-item">
      <text class="input-label">请输入验证码</text>
      <input class="input-field" v-model="verificationCode" placeholder="请输入验证码" />
    </view>
    <button class="submit-button" @click="submit">提交</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      phoneNumber: '',
      verificationCode: ''
    };
  },
  methods: {
    getVerificationCode() {
      // 这里可以添加获取验证码的逻辑
      console.log('获取验证码', this.phoneNumber);
    },
    submit() {
      // 这里可以添加提交的逻辑
      console.log('提交', this.phoneNumber, this.verificationCode);
    }
  }
};
</script>

<style>
.container {
  padding: 20rpx;
  background-color: #f9f9f9;
  height: 100vh;
}

.input-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20rpx;
}

.input-label {
  font-size: 16px;
  color: #333;
}

.input-field {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 5rpx;
  padding: 10rpx;
  margin-left: 10rpx;
}

.code-button {
  background-color: #297BF6;
  font-size: 30rpx;
  color: white;
  line-height: 80rpx;
  border-radius: 30rpx;
  padding: 0rpx 15rpx;
  height: 80rpx;
  margin-left: 20rpx;
}

.submit-button {

  height: 100rpx;
  background-color: #297BF6;
  color: white;
  border: none;
  border-radius: 5rpx;
  padding: 10rpx;
  width: 100%;
  margin-top: 20rpx;
}
</style>